package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgAgentLevel;
import com.ygqh.baby.po.YgAgentLevelExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: sunshuo
 * @Date: 2019/9/16/016 16:27
 * @Version: 1.0
 */
public interface YgAgentLevelMapper {

    int countByExample(YgAgentLevelExample example);

    int deleteByExample(YgAgentLevelExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgAgentLevel record);

    int insertSelective(YgAgentLevel record);

    List<YgAgentLevel> selectByExample(YgAgentLevelExample example);

    YgAgentLevel selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgAgentLevel record, @Param("example") YgAgentLevelExample example);

    int updateByExample(@Param("record") YgAgentLevel record, @Param("example") YgAgentLevelExample example);

    int updateByPrimaryKeySelective(YgAgentLevel record);

    int updateByPrimaryKey(YgAgentLevel record);
    
    int countSuper(@Param ("q") String q);
    
    List<YgAgentLevel> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);

    Boolean existsLevelName(@Param("levelName") String levelName, @Param("id") Long id);
}



